#define _CRT_SECURE_NO_WARNINGS 1
#include"clist.h"
void test1()
{
	CL* plist = NULL;
	CLPushBack(&plist, 0);
	CLPushBack(&plist, 1);
	CLPushBack(&plist, 2);
	CLPushBack(&plist, 3);
	CLPopFront(&plist);
	CLPushFront(&plist, 2);
	CLPushFront(&plist, 5);
	CLPopBack(&plist);
	CLPopBack(&plist);
	CLPrint(plist);
}
void test2()
{
	CL* plist = NULL;
	CLPushBack(&plist, 0);
	CLPushBack(&plist, 1);
	CLPushBack(&plist, 2);
	CLPushBack(&plist, 3);
	CLPopFront(&plist);
	CLPushFront(&plist, 2);
	CLPushFront(&plist, 5);
	CLPopBack(&plist);
	CLPopBack(&plist);
	CLPrint(plist);
	CL* pos = CLFind(plist, 2);
	CLInsert(&plist, pos, 3);
	CLPrint(plist);
	CLErase(&plist, pos);
	pos = CLFind(plist, 5);
	CLPrint(plist);
	CLEraseAfter(pos);
	CLPrint(plist);
	CLInsertAfter(pos, 2);
	CLPrint(plist);

}
int main()
{
	test2();
}